package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.member.feign.fallback.OrderFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @create: 2024/9/15
 * @author: gyhe10
 * @description: 远程调用 order 服务的 feign 接口
 **/
@FeignClient(value = "gulimall-order", fallback = OrderFeignServiceFallback.class)
public interface OrderFeignService {

    @PostMapping("/order/order/listWithOrderItems")
    R getOrderListWithOrderItems(@RequestBody Map<String, Object> params);
}
